package cn.gson.fengboot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

@Entity
public class Lshenpi {
    private Integer spId;//审批id
    private Integer spTabid;//审批表id
    private String spShuoming;//申请说明
    private Date spSpshenqindate;//审批申请时间
    private String spShenqingren;//申请人
    private Date spShenqindate;//审批时间
    private String sp_Fojuyy;//否决原因
    private String spSpzt;//审批状态
    private String spZhuti;//审批状态
    private  QempFrom qempFrom;//员工对象
    private  Lxsfy lxsfy;//销售费用申请对象
    private  Lchucha lchucha;//出差申请对象
    private Zbarter zbarter;//换货申请对象
    private Zcontract zcontract;//合同申请对象
    private Zorder zorder;//订单申请对象
    private Zreturnedgood zreturnedgood;//退货申请对象
    private  QpurchaseEntity qpurchaseEntity;//采购主表对象
    private Doffer doffer;

    @Id
    @Column(name = "sp_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getSpId() {
        return spId;
    }

    public void setSpId(Integer spId) {
        this.spId = spId;
    }

    @Basic
    @Column(name = "sp_spzt")
    public String getSpSpzt() {
        return spSpzt;
    }

    public void setSpSpzt(String spSpzt) {
        this.spSpzt = spSpzt;
    }

    @Basic
    @Column(name = "sp_tabid")
    public Integer getSpTabid() {
        return spTabid;
    }

    public void setSpTabid(Integer spTabid) {
        this.spTabid = spTabid;
    }

    @Basic
    @Column(name = "sp_spshenqindate")
    public Date getSpSpshenqindate() {
        return spSpshenqindate;
    }

    public void setSpSpshenqindate(Date spSpshenqindate) {
        this.spSpshenqindate = spSpshenqindate;
    }


    @Basic
    @Column(name = "sp_shenqingren")
    public String getSpShenqingren() {
        return spShenqingren;
    }

    public void setSpShenqingren(String spShenqingren) {
        this.spShenqingren = spShenqingren;
    }

    @Basic
    @Column(name = "sp_shenqindate")
    public Date getSpShenqindate() {
        return spShenqindate;
    }

    public void setSpShenqindate(Date spShenqindate) {
        this.spShenqindate = spShenqindate;
    }


    @Basic
    @Column(name = "sp_zhuti")
    public String getSpZhuti() {
        return spZhuti;
    }

    public void setSpZhuti(String spZhuti) {
        this.spZhuti = spZhuti;
    }


    @Basic
    @Column(name = "sp_fojuyy")
    public String getSp_Fojuyy() {
        return sp_Fojuyy;
    }

    public void setSp_Fojuyy(String sp_Fojuyy) {
        this.sp_Fojuyy = sp_Fojuyy;
    }



    @ManyToOne
    @JoinColumn(name = "emp_id")
    public QempFrom getQempFrom() {
        return qempFrom;
    }

    public void setQempFrom(QempFrom qempFrom) {
        this.qempFrom = qempFrom;
    }

    @Basic
    @Column(name = "sp_shuoming")
    public String getSpShuoming() {
        return spShuoming;
    }

    public void setSpShuoming(String spShuoming) {
        this.spShuoming = spShuoming;
    }


    @ManyToOne
    @JoinColumn(name = "xsfy_id")
    public Lxsfy getLxsfy() {
        return lxsfy;
    }

    public void setLxsfy(Lxsfy lxsfy) {
        this.lxsfy = lxsfy;
    }

    @ManyToOne
    @JoinColumn(name = "cc_id")
    public Lchucha getLchucha() {
        return lchucha;
    }

    public void setLchucha(Lchucha lchucha) {
        this.lchucha = lchucha;
    }

    @ManyToOne
    @JoinColumn(name = "barter_id")
    public Zbarter getZbarter() {
        return zbarter;
    }

    public void setZbarter(Zbarter zbarter) {
        this.zbarter = zbarter;
    }

    @ManyToOne
    @JoinColumn(name = "con_id")
    public Zcontract getZcontract() {
        return zcontract;
    }

    public void setZcontract(Zcontract zcontract) {
        this.zcontract = zcontract;
    }

    @ManyToOne
    @JoinColumn(name = "order_id")
    public Zorder getZorder() {
        return zorder;
    }

    public void setZorder(Zorder zorder) {
        this.zorder = zorder;
    }

    @ManyToOne
    @JoinColumn(name = "returgood_id")
    public Zreturnedgood getZreturnedgood() {
        return zreturnedgood;
    }

    public void setZreturnedgood(Zreturnedgood zreturnedgood) {
        this.zreturnedgood = zreturnedgood;
    }

    @ManyToOne
    @JoinColumn(name = "purchase_id")
    public QpurchaseEntity getQpurchaseEntity() {
        return qpurchaseEntity;
    }

    public void setQpurchaseEntity(QpurchaseEntity qpurchaseEntity) {
        this.qpurchaseEntity = qpurchaseEntity;
    }


    @ManyToOne
    @JoinColumn(name = "offer_id")
    public Doffer getDoffer() {
        return doffer;
    }

    public void setDoffer(Doffer doffer) {
        this.doffer = doffer;
    }



    public Lshenpi(Integer spTabid, String spShuoming, Date spSpshenqindate, String spShenqingren, String spSpzt, QempFrom qempFrom) {
        this.spTabid = spTabid;
        this.spShuoming = spShuoming;
        this.spSpshenqindate = spSpshenqindate;
        this.spShenqingren = spShenqingren;
        this.spSpzt = spSpzt;
        this.qempFrom = qempFrom;
    }


    public Lshenpi() {
    }
}
